package Ejercicios;

import java.util.Scanner;

/**
 * Formula General en Una Linea.
 */

public class FormulaGeneral {
      static Scanner lectura= new Scanner(System.in);
    public static void main(String[] args) {
           double a,b,c,d,e;
         System.out.println("Valor de A ");
           a= lectura.nextDouble();
        System.out.println("Valor de B ");
           b= lectura.nextDouble();
        System.out.println("Valor de C ");
           c= lectura.nextDouble();
           d= (-b +(Math.sqrt(Math.pow(b, 2)-4*a*c*a)))/2;
           e= (-b -(Math.sqrt(Math.pow(b, 2)-4*a*c*a)))/2;
        System.out.println("El resultado es :\n"+d+"\n"+e);
        
    }
}